import type { ActionProps } from "~/types/enum";

export enum NoticeanApi {
  GetList = "api/Noticean/GetList",
  AddorUpdate = "api/Noticean/AddorUpdate",
  CheckData = "api/Noticean/CheckData",
  Delete = "api/Noticean/Delete",
  Reduction = "api/Noticean/Reduction",
  GetDetail = "api/Noticean/GetListb",
  Confirm = "api/Noticean/Confirm",
  DetailList = "api/Noticean/GetListc",
  Readuser = "api/Noticean/readuser"
}

export class NoticeanAction {
  actionPros: ActionProps = {
    addCode: "NoticeanAdd",
    deleteCode: "NoticeanDelete",
    updateCode: "NoticeanUpdate",
    queryCode: "NoticeanGetList",
    importCode: "",
    exportCode: "NoticeanExport",
    downImportCode: "",
    reductionCode: "NoticeanReduction",
    recyclebinCode: "NoticeanRecyclebin"
  };
}

export interface NoticeanInfo {
  title: string;
  type: string;
  content: string;
  fscontent: any;
  readornot: string;
  publisher: string;
}
